import Vue from "vue";
import Router from "vue-router";
// 异步路由 ， 基础路由
import { constantRouterMap } from "./config/router.basic.config.js";

import defaultSetting from "./config/setting.default.js";

Vue.use(Router);

export default new Router({
	mode: "history",
	base: defaultSetting.ROOT_PATH,
	routes: [...constantRouterMap]
});
